﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using CloudClip.HelperMehtod;

namespace CloudClip
{
    static class Program
    {
        /// <summary>
        /// 應用程式的主要進入點。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            #region ProcessCheck

            if (ProcessHelper.IsProcessing(ProcessRange.Global))
            {
#if DEBUG
                Application.Run(new frmMain());
                return;
#endif
                MessageBox.Show("CloudClip已在執行中.");
            }else
            {
                Application.Run(new frmMain());
            }

            #endregion
        }
    }
}
